<?php
/*
 * Custom Page plugin
 *
 */

function igolf_news_init() {
    // Register a pagehandler
    elgg_register_plugin_hook_handler('view', 'sidebar_news', 'igolf_news_sidebar_handler');
}
 
function igolf_news_sidebar_handler($hook, $type, $returnvalue, $params){
	return elgg_view('igolf_news/news');
}

elgg_register_event_handler('init', 'system', 'igolf_news_init');